package com.person.monitor;

import android.text.TextUtils;

import com.person.monitor.location.LocRet;

import java.util.List;

public class MonitorInfo {

    public int time;
    public float lightLux;
    public String connectWifiSSID;
    public List<String> scanWifiList;
    public boolean isWifiEnabled;
    public LocRet locRet;

    @Override
    public String toString() {
        return "time="+time
                +",ssid="+connectWifiSSID
                +",lux="+lightLux
                +",distance="+String.format("%.2f",WorkVolumeProcess.calculateDistance(locRet));
    }

    public boolean wifiContainKey(String key){
        if(TextUtils.isEmpty(connectWifiSSID)){
            return false;
        }else{
            return connectWifiSSID.contains(key);
        }
    }
}
